#!/bin/bash

TEST="True"  # change to True if testing...

if [ ${TEST}_ == "True"_ ]; then  # test for vbox debug
    PATH_APPLICATION="./"
    MAIN_FILE="main.py"
    DIR="./data/test/"
else
    PATH_APPLICATION=$APP_HOME"/IODebugging/"
    MAIN_FILE="main.pyc"
    DIR=$CNC_CFG_DIR"/yaml/"
fi

# python3 main.pyc $CNC_CFG_DIR/iotype.yaml
path_iotype=$DIR"/iotype.yaml"

path_io_file=$DIR"/plc_io_i5os.yaml"
path_io_file2=$DIR"/plc_io_milling.yaml"
path_io_file3=$DIR"/plc_io_turning.yaml"

# python3 main.py $path_iotype
python3 main.py $path_iotype -e "['${path_io_file}', '${path_io_file2}', '${path_io_file3}']"
